package com.iraeta.mapper.gift;

import com.iraeta.entity.gift.Gift;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iraeta.entity.resulttype.GiftResultType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 礼品表 Mapper 接口
 * </p>
 *
 * @author chenbin
 * @since 2023-12-21
 */
@Mapper
public interface GiftMapper extends BaseMapper<Gift> {
    GiftResultType getGift(@Param("id") Integer id);
    List<GiftResultType> listGiftByName(@Param("name") String name);
    List<GiftResultType> listGiftByTypeId(@Param("typeId") Integer typeId, @Param("name") String name);
}
